package com.wkbb.sports.enums;

public enum SportsHomeContentWeightEnum {

    FOUR_HUNDRED(1,400),
    TWO_HUNDRED(2,200),
    ONE_HUNDRED(3,100);

    private SportsHomeContentWeightEnum(Integer code, Integer value) {
        this.code = code;
        this.value = value;
    }

    private Integer code;

    private Integer value;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public static Integer getDesc(Integer code) {
        for (SportsHomeContentWeightEnum homeContentWeightEnum : SportsHomeContentWeightEnum.values()) {
            if (homeContentWeightEnum.getCode().equals(code)) {
                return homeContentWeightEnum.getValue();
            }
        }
        return null;
    }

}
